<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>添加储值方案</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :model="form" ref="contract" :rules="rules" inline-message="true" style="width: 100%">
      <el-input v-model.trim="form.Enterprise_Info_SerialNumber" v-show="false"></el-input>
      <el-input v-model.trim="form.Industry_SubCategory_SerialNumber" v-show="false"></el-input>
      <el-input v-model.trim="form.Industry_Category_SerialNumber" v-show="false"></el-input>
      <div class="table_titel">
        <div class="titel">添加储值信息</div>
      </div>
      <el-descriptions :column="3" border size="small">
        <el-descriptions-item label="储值方案名称">
          <el-form-item prop="Prepayment_Scheme_Name">
            <el-input v-model.trim="form.Prepayment_Scheme_Name" placeholder="请输入储值方案名称"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="起步值">
          <el-form-item prop="Starting_Amount">
            <el-input type="numBer" v-model.trim="form.Starting_Amount" placeholder="请输入起步值(需要输入整数)"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="单位值">
          <el-form-item prop="Unit_Amount">
            <el-input type="numBer" v-model.trim="form.Unit_Amount" placeholder="请输入单位值(需要输入整数)"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="赠送值">
          <el-form-item prop="Gift_Amount">
            <el-input type="numBer" v-model.trim="form.Gift_Amount" placeholder="请输入赠送值(需要输入整数)"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="执行时间">
          <el-form-item prop="Execute_Date">
            <el-date-picker v-model.trim="form.Execute_Date" type="datetime" placeholder="请选择结算时间"
              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>
      <div style="margin-bottom: 100px;">
        <div class="table_titel">
          <div class="titel">适用店铺</div>
          <div class="operation">
            <el-button type="primary" size="small" @click="add_prepayment_scheme_storescope">新增</el-button>
            <el-button type="danger" size="small" @click="remove_prepayment_scheme_storescope">删除</el-button>
          </div>
        </div>
        <el-descriptions :column="1" border size="small"
          v-for="(item,index) in form.Children.prepayment_scheme_storescope" :key="item.key">
          <el-descriptions-item label="店铺编号">
            <el-form-item prop="Store_SerialNumber">
              <el-select v-model.trim="item.Store_SerialNumber" placeholder="请选择店铺" filterable style="width: 100%"
                @change="Change_Store_SerialNumber(index)">
                <el-option v-for="(item,index) in store" :key="index" :label="item.Store_Name"
                  :value="item.Store_SerialNumber"></el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item label="小程序App_ID">
            <el-form-item prop="App_ID">
              <span v-show="item.App_ID==''" style="color: rgb(163, 163, 163);">&nbsp;&nbsp;&nbsp; 请选择店铺</span>
              <span v-show="item.App_ID!=''">&nbsp;&nbsp;&nbsp;{{item.App_ID}}</span>
            </el-form-item>
          </el-descriptions-item>
        </el-descriptions>
      </div>

      <el-form-item class="form-operation">
        <el-button @click="window.history.back()">返回</el-button>
        <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
  <script type="text/javascript" src="../../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../../js/utils.js"></script>
  <script type="text/javascript" src="../../../../js/ID_Validity.js"></script>
  <script type="text/javascript" src="./js/Add.js"></script>
</body>

</html>